package com.itany.corejava.code08_常用类.泛型练习;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年11月16日 11:47
 */
public class Pupil implements SchoolInterface<Pupil> {
    private String name;
    private int age;
    private double height;

    public Pupil(String name, int age, double height) {
        this.name = name;
        this.age = age;
        this.height = height;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    @Override
    public String show(Pupil pupil) {
        return pupil.getName();
    }
}
